package org.bob.learn.dao.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

/**
 * 酒店信息
 */
@Document(indexName = "hotel")
public class Hotel {

    /**
     * 酒店主题
     */
    @Id
    private String title;

    /**
     * 酒店城市
     */
    @Field(name = "city")
    private String city;

    /**
     * 酒店价格
     */
    @Field(name = "price")
    private double price;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
